package com.yuntai.pms.model.enums;


import java.util.LinkedHashMap;
import java.util.Map;

public enum IsvStatus {

    ENABLED("enabled", "有效"),
//    CHECK("check", "待审核"),
    DISABLED("disabled", "无效");

    private String code;
    private String name;
    private final  static Map<String,String> isvStatusMap = new LinkedHashMap<String,String>();

    static   {
        isvStatusMap.put(IsvStatus.ENABLED.getCode(), IsvStatus.ENABLED.getName());
       // isvStatusMap.put(IsvStatus.CHECK.getCode(), IsvStatus.CHECK.getName());
        isvStatusMap.put(IsvStatus.DISABLED.getCode(), IsvStatus.DISABLED.getName());
    }

    public static Map<String, String> getIsvStatusMap() { return isvStatusMap; }

    private IsvStatus(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
